package com.cgq.pro.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cgq.base.service.impl.BaseServiceImpl;
import com.cgq.pro.dao.RegionStaticDao;
import com.cgq.pro.entity.LandForm;
import com.cgq.pro.entity.RegionStatistics;
import com.cgq.pro.service.RegionStaticService;

@Service
public class RegionStaticServiceImpl extends BaseServiceImpl<RegionStatistics> implements
		RegionStaticService {
	
	private RegionStaticDao regionStaticDao;
	
	@Autowired
	public void setRegionStaticDao(RegionStaticDao regionStaticDao) {
		this.regionStaticDao = regionStaticDao;
		this.baseDao=regionStaticDao;
	}

	public List<RegionStatistics> getAllRecords(int start, int pageSize,
			Map<String, String> map) {

		return regionStaticDao.getAllRecords(start, pageSize, map);
	}

	public int getTotal(Map<String, String> map) {
		return regionStaticDao.getTotal(map);
	}

	public List getStatisticsData(Map<String,String> map) {
		return regionStaticDao.getStatisticsData(map);
	}

	public List<RegionStatistics> getAllRecords(LandForm landForm) {
		return regionStaticDao.getAllRecords(landForm);
	}
	
}
